/*
 * Copyright 2002-2015 the Beijing Brain Technology co.,LTD http://www.bris.cn/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bris.niosocket.message.impl;

import com.bris.niosocket.message.SerialNumber;
import com.bris.niosocket.message.StoreMessage;

/**
 * 数据请求</br>
 * 2015年11月26日</br>
 * @author xunaidong
 * @since 1.0.0
 */
public class ResponseMessage extends StoreMessage{
	
	private String errorCode;
	
	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * @param errorCode the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	/**
	 * @return the errorMsg
	 */
	public String getErrorMsg() {
		return errorMsg;
	}

	/**
	 * @param errorMsg the errorMsg to set
	 */
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	private String errorMsg;
	
	/**
	 * 序列化
	 */
	private static final long serialVersionUID = -7421034609617518665L;
	public final int CMD_RESPONSE = 0x00000001; // 客户端请求

	/* (non-Javadoc)
	 * @see com.bris.niosocket.message.IMessage#getPath()
	 */
	@Override
	public String getPath() {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see com.bris.niosocket.message.IMessage#getSerialNumber()
	 */
	@Override
	public SerialNumber getSerialNumber() {
		// TODO Auto-generated method stub
		return number;
	}

	public boolean hasError(){
		return !(errorMsg==null);
	}
	

}
